package com.jj.buy.service;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.jj.buy.entities.User;

@FeignClient(value = "JJBuy-8001")
public interface Userservice
{
@RequestMapping(value = "/dept/get/{id}",method = RequestMethod.GET)
public User get(@PathVariable("id") String user_id);
@RequestMapping(value = "/dept/list",method = RequestMethod.GET)
public List list();
@RequestMapping(value = "/dept/add",method = RequestMethod.POST)
public boolean add();
}
